/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DTO;
import java.sql.Timestamp;


public class CHoaDon extends CTao{    
    private String sohoadon;
    private String loaiPhieu;//PN .Phieu nhap. PX. phieu xuat, hdbh . Hoa don ban hang. // hdmh Hoa don mua hang
    // PCK . Phieu chuyen kho
    private long nguoilapId;// nhan vien nhap hang
    private long nguoiGiaoId;//nhan vien giao hang
    private Timestamp ngayLap;    
    private long khachHang_Id;// Ma khach hang hay ma nhan cung cap
    private String ten;//Khach hang le va khach hang than quen
    private String diaChi;//
    private long kho_id;    
    private Double tongtien;
    private Double chiet_khau;
    public void setChieuKhau(Double chiet_khau){
        this.chiet_khau = chiet_khau;
    }
    
    public Double getChietKhau(){
        return this.chiet_khau;
    }
    
    private Boolean tinhTrangPhieu;
    public void setTinhTrang(Boolean tinhTrang){
        this.tinhTrangPhieu = tinhTrang;
    }
    public Boolean getTinhTrang(){
        return this.tinhTrangPhieu;
    }
    
    public void setTongTien(Double tongtien){
        this.tongtien = tongtien;
    }
    
    public Double getTongTien(){
        return this.tongtien;
    }
    
    public void setKhoId(long khoid){
        this.kho_id = khoid;
    }
    public long getKhoId(){
        return this.kho_id;
    }
    
    public CHoaDon(){}
    
    private Timestamp ngayNhap;
    public void setNgayNhap(Timestamp ngaynhap){
        this.ngayNhap = ngaynhap;
    }
    
    public Timestamp getNgayNhap(){
        return this.ngayNhap;
    }
    
    public void setKhachHangId(long khachhangId){
        this.khachHang_Id = khachhangId;
    }
    
    public long getKhachHangId(){
        return this.khachHang_Id;
    }
    public void setNguoiLapId(long id){
        this.nguoilapId = id;
    }
    public long getNguoilapId(){
        return this.nguoilapId;
    }
    public void setNguoiGiaoId(long id){
        this.nguoiGiaoId = id;
    }
    public long getNguoiGiaoId(){
        return this.nguoiGiaoId;
    }
    
    public void setLoaiPhieu(String loaiPhieu){
        this.loaiPhieu = loaiPhieu;
    }
    
    public String getLoaiPhieu(){
        return this.loaiPhieu;
    }
    
    public void setSoHoaDon(String hoadon){
        this.sohoadon = hoadon;
    }
    
    public String getHoaDon(){
        return this.sohoadon;
    }
}
